package com.zy.sso.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.PathVariable;

import com.zy.common.util.TaotaoResult;
import com.zy.pojo.TbUser;

public interface UserService {
	/**
	 * 数据校验
	 */
	public TaotaoResult checkData(String param, Integer type);

	/**
	 * 创建用户
	 */
	public TaotaoResult createUser(TbUser user);

	/**
	 * 登录
	 */
	public TaotaoResult userLogin(String username, String password, HttpServletRequest request,
			HttpServletResponse response);

	/**
	 * 通过token查询用户信息
	 */
	public TaotaoResult getUserByToken(String token);
	
	/**
	 * 退出
	 */
	public TaotaoResult userLogout(String token);
}
